package org.mytools.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class DateUtils {

	public static final String FORMAT_YMD_HMS_DASH = "yyyy-MM-dd HH:mm:ss";

	public static String currentDatetime(String datetimeFormat) {
		SimpleDateFormat simpleDateFormat = new SimpleDateFormat(datetimeFormat);
		return simpleDateFormat.format(Calendar.getInstance().getTime());
	}

}
